package com.kasax.imageloader;

import android.app.Application;

import com.kasax.imgloader.v1.ImgLoader;
import com.kasax.imgloader.v1.cache.CacheMode;

public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        // 初始化V1
        ImgLoader.ImageLoaderConfiguration configuration = new ImgLoader.ImageLoaderConfiguration.Builder(this)
                .cacheMode(CacheMode.MEMORY_CACHE)
                .build();
        ImgLoader.getInstance().init(configuration);
    }
}
